package merlin.beans;

import java.util.*;

public class ReportTitlesBean implements java.io.Serializable, Comparable{

	private java.lang.String reportTitle;
	private java.lang.String reportDescription;
	private int reportTitlesId;
	private int score;
	private int noOfCompaniesInBook;
	private int noOfCompaniesInDatabase;
	private String reportCode;
	private boolean customReport;

	public ReportTitlesBean(){
	}

	public ReportTitlesBean(int reportTitlesId){
		this.reportTitlesId = reportTitlesId;
	}
	
	public ReportTitlesBean(java.lang.String reportTitle,java.lang.String reportDescription,int reportTitlesId){
		setReportTitle(reportTitle);
		setReportDescription(reportDescription);
		setReportTitlesId(reportTitlesId);
	}


	public java.lang.String getReportTitle(){
		return this.reportTitle;
	}

	public void setReportTitle(java.lang.String reportTitle){
		this.reportTitle=reportTitle;
	}

	public java.lang.String getReportDescription(){
		return this.reportDescription;
	}

	public void setReportDescription(java.lang.String reportDescription){
		this.reportDescription=reportDescription;
	}

	public int getReportTitlesId(){
		return this.reportTitlesId;
	}

	public void setReportTitlesId(int reportTitlesId){
		this.reportTitlesId=reportTitlesId;
	}

	public int getScore(){
		return score;
	}

	public void setScore(int value){
		score = value;
	}

	/**
	 * Compares this object with the specified object for order.
	 * Since we need the reports with higher scores at the top,the returned value is the opposite of what is expected in
	 * a normal Comparable implementation.
	 */
	public int compareTo(Object o){
		ReportTitlesBean other = (ReportTitlesBean)o;
  		return other.score - this.score;
	}

	public int getNoOfCompaniesInBook() {
		return noOfCompaniesInBook;
	}

	public void setNoOfCompaniesInBook(int value) {
		noOfCompaniesInBook = value;
	}

	public int getNoOfCompaniesInDatabase() {
		return noOfCompaniesInDatabase;
	}

	public void setNoOfCompaniesInDatabase(int value) {
		noOfCompaniesInDatabase = value;
	}

	public String getReportCode() {
		return reportCode;
	}

	public void setReportCode(String value) {
		reportCode = value;
	}

	public boolean isCustomReport() {
		return customReport;
	}

	public void setCustomReport(boolean value) {
		customReport = value;
	}
}



